package com.yzh.springboot_rbac.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Menu {
    @NotNull(message = "menuId can not is null")
    private Integer menuId;
    @NotBlank(message = "menuName can not is null")
    private String menuName;
    private Integer parentId;
    private Integer orderNum;
    /*分别是路由地址，组件路径，路由参数*/
    private String path;
    private String component;
    private String query;
    private String routeName;

    /*是否外链，是否缓存，不懂*/
    private Integer isFrame;
    private Integer isCache;

    private String menuType;
    /*这两个都是菜单状态？不懂*/
    private String visible;
    private String status;

    /*权限标识：不懂*/
    private String perms;

    /*菜单图标*/
    private String icon;

    private String createBy;
    private Date createTime;
    private String updateBy;
    private Date updateTime;
    private String remark;
    private List<Role> roleList;

    /*子节点*/
    private List<Menu> children;

}
